/**
 * @description 抽象类
 * @abstract
 * @class {Demo}
 * @author hhx
 * @date 2024-11-20 16:11
 * @version 0.1.2
 */
class Demo {
    constructor() {
    }

    /**
     * @description
     * @abstract
     */
    a() {
        console.log(123)
    }
}

class Demo2 extends Demo {
    constructor() {
        super();
    }

    b() {
        this.a();
    }
}

let c = new Demo2()
c.b()